package com.registration.server.impl;

import com.registration.entity.YlDoctor;
import com.registration.mapper.YlDoctorMapper;
import com.registration.server.YlDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lha
* @description 针对表【yl_doctor(医生信息表)】的数据库操作Service实现
* @createDate 2022-02-23 15:22:40
*/
@Service
public class YlDoctorServiceImpl implements YlDoctorService{

    @Autowired
    YlDoctorMapper ylDoctorMapper;

    @Override
    public List<YlDoctor> findAll(int doctorId) {
        return ylDoctorMapper.findAll(doctorId);
    }

    @Override
    public List<YlDoctor> findAllDo() {
        return ylDoctorMapper.findAllDo();
    }
}
